xl: fix memory management of migration_domname_r
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 14 Sep 2010 17:25:15 +0000 (18:25 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Tue, 14 Sep 2010 17:25:15 +0000 (18:25 +0100)
commit341388ff9086c364151867437d0e65435e80475c
treed0744e045f4518ae4b15f69fe3c23e78798f4ba8
parenta502f04ad66c2db8f008925920513f99fa34846d
xl: fix memory management of migration_domname_r

During migration, the domain name from the config file is swapped out
and replaced with a different name (with the "--incoming" suffix),
which we return to the caller.  The memory management arrangements
here were broken.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/xl_cmdimpl.c